package com.pacific.uumconsole.web;

import com.pacific.uumconsole.biz.user.UserService;
import com.pacific.uumconsole.model.po.e8schema.mbg.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by admin on 2017/4/12.
 */
@Controller
public class BaseDemoController {
    @Autowired
    private UserService userService;

    @RequestMapping(value = "isLive.action")
    @ResponseBody
    public String isLive() {
        return "hello world!";
    }


    @RequestMapping(value = "getUserInfo.action")
    @ResponseBody
    public User getUserInfo() {
        return userService.getUserById(23);
    }
}
